<!DOCTYPE html>
<html>
    <head>
        <title><?php echo $title; ?></title>
            <?php echo link_tag('css/main.css' . '?' . time()); ?>
            <?php echo link_tag('css/superfish.css' . '?' . time()); ?>
            <?php echo link_tag('css/rounded-corners.css' . '?' . time()); ?>
            <?php echo link_tag('css/slimbox2.css' . '?' . time()); ?>
            <?php echo link_tag('css/grid.css' . '?' . time()); ?>
            <?php echo link_tag('css/data-form.css' . '?' . time()); ?>
            <?php echo link_tag('css/custom-theme/jquery-ui-1.8.22.custom.css' . '?' . time()); ?>
            <?php echo isset($additional_css_references) ? $additional_css_references : '' ;?>
            <?php header('Content-type: text/html; charset=utf-8');?>

		<script type="text/javascript" src="<?php echo base_url() . ('js/jquery-1.7.2.min.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/jquery-ui-1.8.22.custom.min.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/hoverIntent.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/superfish.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/slimbox2.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/jquery.cycle.lite.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/jquery.cycle.lite.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url() . ('js/form_script.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url() . ('js/common_form_functions.js'); ?>"></script>
        <?php echo isset($additional_javascript_references) ? $additional_javascript_references : '' ;?>
         
		<script type="text/javascript">
			
			function get_base_url(){
				return <?php echo '\''.base_url().'\''; ?>;
			}

			$(document).ready(function() {
				<?php   //The php var below contains javascript loaded and used from the calling controller
						echo isset($additional_javascript_doc_ready_functions) ? $additional_javascript_doc_ready_functions : '' ; ?>		 }	
				);//End of document ready
					
				<?php //The php var below contains additional javascript functions created in calling controller
                echo isset($additional_javascript) ? $additional_javascript : ''; ?>

        </script>                
		
    </head>
    
    <body>
        <div class="container">
            <div class="cb">
                <div class="bt"><div></div></div>
                <div class ="i1">
                    <div class ="i2">
                        <div class ="i3">
                            <div class="header">
                                <?php $this->load->view('header_view'); ?>
                            </div>
                            <div class="content">
                                <?php $this->load->view($view); ?>
                            </div>
                            <div class="footer">
                                <?php $this->load->view('footer_view'); ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="bb"><div></div></div>
            </div>
        </div>
        Copyright 2012 by Central Alabama VW Club
    </body>
</html>